xquery version "1.0";

declare variable $recipeXMLDocPath external;
declare variable $recipeId external;


let $recipeList := doc($recipeXMLDocPath)//Recipe
for $recipe in $recipeList
where $recipe/@id = $recipeId
return <Recipe id='{$recipe/@id}'>{$recipe/name}</Recipe>
